package com.szgr.baoyin.adapter;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.szgr.baoyin.R;
import com.szgr.baoyin.activity.ApplyActivity;

/**
 * 舍弃
 * Created by Jimbo on 2015/9/21.
 */
public class BaoYinBrandLeftAdapter extends BaseAdapter {
    private Context mContext;
    public BaoYinBrandLeftAdapter(Context context){
        mContext = context;
    }
    @Override
    public int getCount() {
        return 7;
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if(convertView == null){
            convertView = LayoutInflater.from(mContext).inflate(R.layout.item_my_inner_insure,parent,false);
        }
        TextView tv_apply = (TextView) convertView.findViewById(R.id.inner_apply);
        tv_apply.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent applyIntent = new Intent(mContext, ApplyActivity.class);
                mContext.startActivity(applyIntent);
            }
        });
        return convertView;
    }
}
